home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NT Sources
/
Infomagic - NT Source Volume 1 (Disc 1 of 2).iso
/
network
/
js15full.exe
/
sld-sbar.ht_
/
sld-sbar.ht
Wrap
Text File
|
1998-03-16
|
2KB
|
73 lines
<html>
<head>
<script language="JavaScript">
<!-- Hide the script from old browsers --
//======================================================
// Java Script code by Java Script It! www.computan.on.ca/~todd/JavaScriptIt!
//======================================================
cnt= 5;spd=10000;var timerID;
curSld=1;
sld=new Array(cnt);
for (i=0; i<(cnt+1); i++) {
sld[i]=i;
}
sld[ 1]="alert.htm";sld[ 2]="animat.htm";sld[ 3]="combo.htm";sld[ 4]="confirm.htm";sld[ 5]="g_roll.htm";function moveSlide () {
document.slideshow.slideNumb.value=curSld+" of "+cnt;
parent.main.location.href=sld[curSld];
if (curSld<cnt) {
clearTimeout(timerID);
curSld=curSld+1;
timerID=setTimeout ("moveSlide ()",spd);
}
}
function nextClick () {
if (curSld<cnt) {
curSld=curSld+0;
moveSlide();
}
else if (curSld==6) {
curSld=curSld+0;
moveSlide();
}
else {
alert('You have reached the last slide!');
}
}
function prevClick () {
if (curSld>2) {
curSld=curSld-2;
moveSlide();
}
else {
alert('You are on the first slide!');
}
}
function exitShow () {
window.parent.window.close ();
}
function leaveShow(x) {
parent.location.href=x;
}
function startShow () {
document.slideshow.slideNumb.value=curSld+" of "+cnt;
curSld=curSld+1;
timerID=setTimeout ("moveSlide ()",spd);
}
//-------------->
</script>
<body onLoad="startShow()" bgColor="#000000" text="#FFFFFF">
<form name="slideshow">
<b>Slide:</b><br>
<input type=text name="slideNumb" size=10 value=""><p>
<input type=button name="prev" value="Previous" onClick="prevClick()"><input type=button name="next" value="Next" onClick="nextClick()"><div align=center><hr><input type=button name="exit" value="Exit Slide Show" onClick="leaveShow('start.htm')")</div></form></body></html>